package com.mojo.aspectbased;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * login代理增强类
 *
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 */
@Aspect
@Component
public class LoginProxy {
    @Before("execution(* com.mojo.aspectbased.LoginServiceImpl.*(..))")
    //增强操作优先级
    @Order(1)
    public void loginBefore() {
        System.out.println("登录增强操作。。。");
    }
}
